{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>短信配置</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="system/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('sms')}">
					<div class="form-group">
						<label class="col-sm-3 control-label">阿里大于APP Key：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="sms_config[app_key]" name="sms_config[app_key]" value="{$sms_config.app_key}" placeholder="阿里大于APP Key" class="form-control" required>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">阿里大于APP Secret：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="sms_config[app_secret]" name="sms_config[app_secret]" value="{$sms_config.app_secret}" placeholder="阿里大于APP Secret" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">验证码过期时间（秒）：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="sms_config[verify_time]" name="sms_config[verify_time]" value="{$sms_config.verify_time}" placeholder="阿里大于APP Secret" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-3 control-label">短信模板：</label>
						<div class="input-group col-sm-4">
							<a class="btn btn-success" href="{:url('sms_template/index')}">前去配置短信模板</a>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<a target="_blank" href="http://www.alidayu.com/">点此前往阿里大于获取短信配置</a>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
	//顶部导航
	$("#li-bar-sms").addClass("active");
	//ajax表单提交
	$("#myForm").submit(function() {
		ajaxForm();
		return false;
	});
</script>
{/block}